package org.blogwu.learn.designpattern.chapter23.v2;

/**
 * 具体命令实现
 *
 * @author hyf
 * @date 2019-04-01
 **/
public class 點牛排命令 implements 命令 {

    private 厨师 cook;

    public 點牛排命令(厨师 cook) {
        this.cook = cook;
    }

    @Override
    public void execute() {
        // 厨师执行 菜品烹制
        cook.cookSteak();
    }
}
